package com.jinmdz.fmis.dao.dao;

import com.jinmdz.fmis.dao.dao.provider.TransportTaskProvider;
import com.jinmdz.fmis.dao.model.transport.TransportTaskViewItem;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.ArrayList;

/**
 * 接运任务Dao
 *
 * @author LiCongLu
 * @date 2020-02-13 11:59
 */
public interface TransportTaskDao {
    /**
     * 按照主键获取接运任务
     *
     * @param id 接运任务主键
     * @return
     * @author LiCongLu
     * @date 2020-02-28 13:41
     */
    @SelectProvider(type = TransportTaskProvider.class, method = "getTransportTaskViewById")
    TransportTaskViewItem getTransportTaskViewById(@Param("id") Integer id);

    /**
     * 按照业务编码查询所有接运任务
     *
     * @param businessCode 业务编码
     * @return
     * @author LiCongLu
     * @date 2020-02-28 13:57
     */
    @SelectProvider(type = TransportTaskProvider.class, method = "listTransportTaskViewByBusinessCode")
    ArrayList<TransportTaskViewItem> listTransportTaskViewByBusinessCode(@Param("businessCode") String businessCode);
}
